﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheSimGer
{
    public class TheFontManager
    {
        public static (string,Color) GetColorByData(int Data) 
        {
            //System.Windows.Forms.MessageBox.Show($"Data={ Data } TheRandom.MAX_PLAYER_SANWEI={ (TheRandom.MAX_PLAYER_SANWEI - 200) }");
            if (Data > (TheRandom.MAX_PLAYER_SANWEI - 50)) return ("超神", Color.Purple);
            if (Data > (TheRandom.MAX_PLAYER_SANWEI - 100)) return ("强壮", Color.DarkGreen);
            

            if (Data < TheRandom.MAX_PLAYER_SANWEI / 8) return ("濒临崩溃",Color.DarkRed);
            if (Data < TheRandom.MAX_PLAYER_SANWEI / 7) return ("危险", Color.Red);
            if (Data < TheRandom.MAX_PLAYER_SANWEI / 6) return ("风险", Color.IndianRed);
            if (Data < TheRandom.MAX_PLAYER_SANWEI / 5) return ("正常", Color.Yellow);
            if (Data < TheRandom.MAX_PLAYER_SANWEI / 4) return ("一般", Color.Black);
            if (Data < TheRandom.MAX_PLAYER_SANWEI / 3) return ("偏低", Color.Gray);

            return ("正常",Color.Black);
        }
    }
}
